package com.framework.shs.a.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import com.framework.shs.a.entity.User;
import com.framework.shs.a.service.UserService;
import com.framework.shs.commom.base.BaseController;

@Controller
@RequestMapping("${adminPath}/user")
public class UserController extends BaseController {

	@Autowired
	private UserService userService;

	@RequestMapping("/test")
	public String test(Model model) {
		User user = userService.test();
		model.addAttribute("user",user);
		return "test";
	}

}
